<template>
  <div class="order-detail-upper">
    <img
      :src="`http://elm.cangdu.org/img/${doc.restaurant_image_url}`"
      alt=""
    />
    <p v-show="doc.time_pass <= 900">等待支付</p>
    <p v-show="doc.time_pass > 900">支付超时</p>
    <input type="button" value="再来一单" @click="handleSkipOrderDetail" />
  </div>
</template>

<script>
import { skipShopMixin } from "common/mixin";

export default {
  props: {
    doc: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  mixins: [skipShopMixin],
};
</script>
<style lang="less" scoped>
.order-detail-upper {
  text-align: center;
  background-color: #fff;
  img {
    width: 80px;
    border-radius: 50%;
    margin: 10px 0;
    vertical-align: middle;
  }
  p {
    font-weight: 700;
    font-size: 20px;
    color: #333333;
  }
  input {
    padding: 3px 5px;
    border: 1px solid #3190e8;
    border-radius: 5px;
    margin: 20px 0;
    background-color: #fff;
    font-size: 15px;
    color: #3190e8;
  }
}
</style>